package jp.bluecab.bluecabsystem.widget;

import jp.bluecab.bluecabsystem.gps.GPSService;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;

public class AppWidget extends AppWidgetProvider {
	
	@Override
	public void onUpdate(Context context, AppWidgetManager appWidgetManager, int appWidgetIds[]) {
		super.onUpdate(context, appWidgetManager, appWidgetIds);
		
		// サービス
		Intent serviceIntent = new Intent(context, GPSService.class);
		serviceIntent.setAction("FIRST_ACTION");
		context.startService(serviceIntent);
		
	}
	
}
